package com.baizhi.controller;

import com.baizhi.service.ArticleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

@Controller
public class ArticleController {
    @Autowired
    private ArticleService articleService;


    @RequestMapping("/selectAllArticle")
    @ResponseBody
    public Map selectAllArticle(int page,int limit){
        return articleService.selectAll(page,limit);
    }
}
